-- GENERATED SPELL FOR [Ancient Drakkari Soothsayer] --


function spell0_26812(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26812', 2500, 1)
end

function spell1_26812(pUnit, Event) --@Prophecy of Blood,n/a--
pUnit:FullCastSpellOnTarget(52468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26812', 10252, 1)
end

function Sorts_26812(pUnit, Event)
local choix_sorts_26812 = math.random(0, 1)
if choix_sorts_26812 == 0 then
pUnit:RegisterEvent('spell0_26812', 1, 1)
end
if choix_sorts_26812 == 1 then
pUnit:RegisterEvent('spell1_26812', 1, 1)
end
end

function mob26812_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26812', math.random(1500, 3000), 1)
end

function mob26812_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26812_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26812_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26812, 1, 'mob26812_Action')
RegisterUnitEvent(26812, 2, 'mob26812_Leave')
RegisterUnitEvent(26812, 3, 'mob26812_Kill')
RegisterUnitEvent(26812, 4, 'mob26812_Die')
